/*
 * File Name: BorderUtil.java
 * Created on: December 25, 2007, 2:38 PM
 */

package co.edu.uniandes.intercon.client.gui.util;

import java.awt.Color;

import javax.swing.BorderFactory;
import javax.swing.border.Border;
import javax.swing.border.EtchedBorder;

/**
 * Border utility class
 *
 * @author Fabian Gutierrez [fagossa@gmail.com]
 */
public class BorderHelper {
    
    // avoids instantiation
    private BorderHelper(){}
    
    public final static Border SIMPLE = 
            BorderFactory.createLineBorder(Color.LIGHT_GRAY);
    
    public final static Border RAISED_ETCHED = 
            BorderFactory.createEtchedBorder(EtchedBorder.RAISED);
    
    public final static Border LOWERED_ETCHED = 
            BorderFactory.createEtchedBorder(EtchedBorder.LOWERED);
    
    public final static Border RAISED_BEVEL = 
            BorderFactory.createRaisedBevelBorder();
    
    public final static Border LOWERED_BEVEL = 
            BorderFactory.createLoweredBevelBorder();
    
    public final static Border EMPTY = 
            BorderFactory.createEmptyBorder();
    
    /**
     * Creates a titled border
     * 
     * @param title Message to be show in the component
     * @return Titled border
     */
    public static Border createTitledBorder(String title){
        return BorderFactory.createTitledBorder(SIMPLE, title);
    }
    
}
